import request from '@/utils/request'

// 查询离职信息列表
export function listDimission(query) {
  return request({
    url: '/business/dimission/list',
    method: 'get',
    params: query
  })
}

// 查询离职信息详细
export function getDimission(id) {
  return request({
    url: '/business/dimission/' + id,
    method: 'get'
  })
}

// 新增离职信息
export function addDimission(data) {
  return request({
    url: '/business/dimission',
    method: 'post',
    data: data
  })
}

// 修改离职信息
export function updateDimission(data) {
  return request({
    url: '/business/dimission',
    method: 'put',
    data: data
  })
}

// 删除离职信息
export function delDimission(id) {
  return request({
    url: '/business/dimission/' + id,
    method: 'delete'
  })
}
